package com.snow.fvmusic.component;

import io.netty.util.internal.ThreadExecutorMap;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @Author ：snow
 * @Date ：Created in 2020-10-14
 * @Description：
 * @Modified By：
 * @Version:
 */
public class SingletonThreadPool {

    private static final ThreadPoolExecutor executor = new ThreadPoolExecutor(
            10,
            20,
            1,
            TimeUnit.SECONDS,
            new LinkedBlockingDeque<>()
    );
    public static  ThreadPoolExecutor getInstance(){
        return executor;
    }

}
